package model.info;

import java.awt.Point;
import java.util.Hashtable;


public class MapNode {

	private String id;
	private Coordinate coordinate;
	private Point point;
	private Boolean used;
	private Hashtable<String,String> info;

	public MapNode(String identity,Coordinate coor) {
		
		id = identity;
		coordinate = coor;
		point = new Point(0,0);
		used = false;
		info = new Hashtable<String,String>();
	}

	public Point getPoint() {
		return point;
	}
	
	public void setPoint(Point point) {
		this.point = point;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Coordinate getCoordinate() {
		return coordinate;
	}

	public void setCoordinate(Coordinate coordinate) {
		this.coordinate = coordinate;
	}

	public Boolean getUsed() {
		return used;
	}

	public void setUsed(Boolean used) {
		this.used = used;
	}
	
	public Hashtable<String,String> getInfo() {
		return info;
	}

	public void setInfo(Hashtable<String,String> info) {
		this.info = info;
	}

	public String toString() {
	
		String string =  "Id: "+id+" Lat: "+coordinate.getLatitude()+" Long: "+coordinate.getLongitude()+" ";
		for (int i=0;i<info.size();i++)
			string = string.concat(info.get(i).toString()+" ");
		return string;
	}
	
	
}
